/* 正则封装 */

// 用户名验证
export const userReg = val => {
    const userRegular = /^1\d{10}$|^[a-zA-z]\w{5,10}$|^1\d{4,5}$/
    return userRegular.test(val)
}

// 密码验证
export const passwordReg = val => {
    const passwordRegular = /^[a-zA-z0-9~@#$%^&*()_+=]{3,18}$/
    return passwordRegular.test(val)
}
export default () => {}